//
//  BTCycleScrollView.h
//  BaseTools
//
//  Created by 李挺哲 on 15/8/27.
//  Copyright (c) 2015年 ltz. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    BTCycleScrollViewPageContolAlimentRight,
    BTCycleScrollViewPageContolAlimentCenter
} BTCycleScrollViewPageContolAliment;

typedef enum {
    BTCycleScrollViewPageContolStyleClassic,        // 系统自带经典样式
    BTCycleScrollViewPageContolStyleAnimated,       // 动画效果pagecontrol
    BTCycleScrollViewPageContolStyleNone            // 不显示pagecontrol
} BTCycleScrollViewPageContolStyle;


@class BTCycleScrollView;

@protocol BTCycleScrollViewDelegate <NSObject>

- (void)cycleScrollView:(BTCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index;

@end
@interface BTCycleScrollView : UIView

// 每张图片对应要显示的文字数组
@property (nonatomic, strong) NSArray *titlesGroup;

// >>>>>>>>>>>>>>>>>>>>>>>>>  滚动控制接口

// 自动滚动间隔时间,默认2s
@property (nonatomic, assign) CGFloat autoScrollTimeInterval;

// 是否无限循环,默认Yes
@property(nonatomic,assign) BOOL infiniteLoop;

// 是否自动滚动,默认Yes
@property(nonatomic,assign) BOOL autoScroll;

@property (nonatomic, weak) id<BTCycleScrollViewDelegate> delegate;




// >>>>>>>>>>>>>>>>>>>>>>>>>  自定义样式接口

// 是否显示分页控件
@property (nonatomic, assign) BOOL showPageControl;

// pagecontrol 样式，默认为动画样式
@property (nonatomic, assign) BTCycleScrollViewPageContolStyle pageControlStyle;

// 占位图，用于网络未加载到图片时
@property (nonatomic, strong) UIImage *placeholderImage;

// 分页控件位置
@property (nonatomic, assign) BTCycleScrollViewPageContolAliment pageControlAliment;

// 分页控件小圆标大小
@property (nonatomic, assign) CGSize pageControlDotSize;

// 分页控件小圆标颜色
@property (nonatomic, strong) UIColor *dotColor;

@property (nonatomic, strong) UIColor *titleLabelTextColor;
@property (nonatomic, strong) UIFont  *titleLabelTextFont;
@property (nonatomic, strong) UIColor *titleLabelBackgroundColor;
@property (nonatomic, assign) CGFloat titleLabelHeight;





+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imagesUrl:(NSArray *)imagesUrl;


@end
